﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Microsoft.SharePoint;

namespace Chaks.SharePoint.Docs.ILP
{
    public class ItemLevelPermissionSettings
    {
        /// <summary>
        /// Gets or sets a value indicating whether [enable Item-level permissions].
        /// </summary>
        /// <value>
        /// 	<c>true</c> if [enable Item-level permissions]; otherwise, <c>false</c>.
        /// </value>
        public bool EnableItemLevelPermissions { get; set; }

        /// <summary>
        /// Gets or sets the default permission level.
        /// </summary>
        /// <value>The default permission level.</value>
        public SPRoleDefinition DefaultPermissionLevel { get; set; }

        /// <summary>
        /// Gets or sets the default groups.
        /// </summary>
        /// <value>The default groups.</value>
        public List<SPGroup> DefaultGroups { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether [apply to existing items].
        /// </summary>
        /// <value>
        /// 	<c>true</c> if [apply to existing items]; otherwise, <c>false</c>.
        /// </value>
        public bool ApplyToExistingItems { get; set; }

        /// <summary>
        /// Gets the event receiver assembly.
        /// </summary>
        /// <value>The event receiver assembly.</value>
        public string EventReceiverAssembly
        {
            get; set;
        }

        /// <summary>
        /// Gets the event receiver class.
        /// </summary>
        /// <value>The event receiver class.</value>
        public string EventReceiverClass
        {
            get; set;
        }
    }
}
